import 'package:tracker/pages/home/flowcard/model/card_packages_resp.dart';

class OrderInfoReq {
  int? payType;
  String? payAccount;
  int? orderType;
  String? imei;
  String? appId;

  PackageInfo? flowPackage;

  OrderInfoReq({this.payType, this.payAccount, this.imei, this.appId, this.flowPackage, this.orderType});

  Map<String, dynamic> toJson() => {
        "payType": payType,
        "payAccount": payAccount,
        "orderType": orderType,
        "imei": imei,
        "appId": appId,
        "flowPackage": flowPackage?.toJson(),
      };

  OrderInfoReq.fromJson(Map<String, dynamic> json) {
    payType = json['payType'];
    payAccount = json['payAccount'];
    orderType = json['orderType'];
    imei = json['imei'];
    appId = json['appId'];
    flowPackage = json['flowPackage'] != null ? PackageInfo().fromJson(json['flowPackage']) : null;
  }
}
